package com.bsierp.business.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Material entity. @author MyEclipse Persistence Tools
 */

public class Material implements java.io.Serializable {

    // Fields

    private Integer materialId;
    private String materialName;
    private String materialDescription;
    private String materialImage;
    private Integer unitId;
    private Integer userId;
    private Double materialPrice;
    private Set productMaterials = new HashSet(0);

    // Constructors

    /** default constructor */
    public Material() {
    }

    /** minimal constructor */
    public Material(String materialName, String materialImage, Integer unitId,
            Integer userId, Double materialPrice) {
        this.materialName = materialName;
        this.materialImage = materialImage;
        this.unitId = unitId;
        this.userId = userId;
        this.materialPrice = materialPrice;
    }

    /** full constructor */
    public Material(String materialName, String materialDescription,
            String materialImage, Integer unitId, Integer userId,
            Double materialPrice, Set productMaterials) {
        this.materialName = materialName;
        this.materialDescription = materialDescription;
        this.materialImage = materialImage;
        this.unitId = unitId;
        this.userId = userId;
        this.materialPrice = materialPrice;
        this.productMaterials = productMaterials;
    }

    // Property accessors

    public Integer getMaterialId() {
        return this.materialId;
    }

    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }

    public String getMaterialName() {
        return this.materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialDescription() {
        return this.materialDescription;
    }

    public void setMaterialDescription(String materialDescription) {
        this.materialDescription = materialDescription;
    }

    public String getMaterialImage() {
        return this.materialImage;
    }

    public void setMaterialImage(String materialImage) {
        this.materialImage = materialImage;
    }

    public Integer getUnitId() {
        return this.unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getMaterialPrice() {
        return this.materialPrice;
    }

    public void setMaterialPrice(Double materialPrice) {
        this.materialPrice = materialPrice;
    }

    public Set getProductMaterials() {
        return this.productMaterials;
    }

    public void setProductMaterials(Set productMaterials) {
        this.productMaterials = productMaterials;
    }

}